package com.xwj.dao;

import com.xwj.dto.HouseInfoDto;
import com.xwj.entity.RaHourseInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * Created by xuweijie on 2018/1/18.
 */
@Mapper
public interface RaHourseInfoDao {

    List<RaHourseInfo> findAllHouseInfo();

    List<RaHourseInfo> findHouseInfoByCloudId(int cloudId);

    int deleteByIds(List<String> ids);

    int updateProperty(HouseInfoDto houseInfoDto);

    List<RaHourseInfo> findByProperty(HouseInfoDto houseInfoDto);

    int insertOneHouse(RaHourseInfo raHourseInfo);

    int updateDetail(Map<String, Object> map);

    RaHourseInfo findHouseInfoById(String id);

    List<RaHourseInfo> findHouseInfoByUserId(String userId);

    List<RaHourseInfo> frontFindByProperty(HouseInfoDto houseInfoDto);

    int updateDelflag(List<String> ids);

    List<RaHourseInfo> frontFindHouseInfoByCloudId(int cloudId);

    int updateStatus(Map<String, Object> map);

}
